package com.sample.springbatch;

import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.Date;

/**
 * @author  zwg
 * @date 2017/3/15.
 */
@SpringBootApplication
@EnableJpaRepositories
@EnableTransactionManagement
@EnableBatchProcessing
public class RootApplication {

    public static void main(String[] args) {

        System.out.println("============== app server running ============");
        SpringApplication app = new SpringApplication(RootApplication.class);
        app.run(args);
        //这里输出是为了 start.sh中判断服务启动完成，作为退出tail命令的条件
        System.out.println("============== "+new Date().toString());
        System.out.println("============== app server run ok ============");
        System.out.println("============== "+new Date().toString());
    }

}
